﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections.ObjectModel;
using System.ComponentModel;
using MahApps.Metro.Controls;
using System.Windows.Input;
using System.Drawing;

namespace CrayonsBox.DataModel
{
    public class Context : INotifyPropertyChanged, IDataErrorInfo
    {
        private static Context s_Instance = null;


        public ObservableCollection<Sprite.Module> Modules { get; set; }
        public ObservableCollection<Sprite.Image> Images { get; set; }
  
        private Context()
        {
            Modules = new ObservableCollection<Sprite.Module>();

            Images = new ObservableCollection<Sprite.Image>();
        }

        public static Context Instance
        {
            get
            {
                if (s_Instance == null)
                    s_Instance = new Context();
                return s_Instance;
            }
        }

        public string Error
        {
            get { throw new NotImplementedException(); }
        }

        public string this[string columnName]
        {
            get { throw new NotImplementedException(); }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
